#ifndef READPIX_H
#define READPIX_H
#include <QThread>
#include <QMutex>

class ReadPix : public QThread
{
    Q_OBJECT
private:
    QList<QString> pixName_List;
    bool isLoadPix_bool;
    QMutex loadPixMutex;
public:
    ReadPix(QObject* parent = 0);
    void setPixName(const QList<QString>& pixNames);
    void stopLoadPix();
protected:
    void run();
signals:
    void loadPix(const QPixmap& pix , int indexs);
};

#endif // READPIX_H